package org.genntii.warehousesystem.domain.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "货品实体")
public class GoodsDTO {
    @Schema(description = "货品名称",type = "String",required = true)
    private String name;
    @Schema(description = "品牌id",type = "int",required = true)
    private int brandId;
    @Schema(description = "描述",type = "String",required = true)
    private String description;
    @Schema(description = "售价",type = "BigDecimal",required = true)
    private BigDecimal outPrice;
    @Schema(description = "批发价",type = "BigDecimal",required = true)
    private BigDecimal wholesalePrice;
    @Schema(description = "批发数量",type = "BigDecimal",required = true)
    private int wholesaleNum;
    @Schema(description = "装货规格",type = "String",required = true)
    private String specification;
    @Schema(description = "条形码",type = "Long",required = true)
    private Long barCode;
}
